package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

import java.math.BigDecimal;

/**
 * SRM送货单关联表
 *
 * @author flyme
 * @date 2020-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_deliver_srm")
@TableAlias("bds")
@ApiModel(value = "BusDeliverSrm对象", description = "SRM送货单关联表")
public class BusDeliverSrm extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "busDeliverSrmId", type = IdType.AUTO)
    private Long busDeliverSrmId;

    @ApiModelProperty(value = "关联主表busMaterialSrmSub-主key")
    private Long busMaterialSrmSubId;

    @ApiModelProperty(value = "PMS材料申请计划ID")
    private Long purchaseId;
    @ApiModelProperty(value = "PMS材料申请计划明细ID")
    private Long purchaseDetailsId;

    @ApiModelProperty("收货单ID")
    private Long receivingNoteId;
    @ApiModelProperty("收货单编号")
    private String receivingNoteNo;
    @ApiModelProperty("采购订单ID")
    private Long purchaseOrderId;
    @ApiModelProperty("采购订单明细ID")
    private Long purchaseOrderDetailId;
    @ApiModelProperty("物料编码")
    private String materialName;
    @ApiModelProperty("物料名称")
    private String materialCode;
    @ApiModelProperty("收货数量")
    private BigDecimal qtyReceive;
    @ApiModelProperty("单位编码")
    private String unitCode;
    @ApiModelProperty("收退货标识")
    private int acceptReturnFlag;
    @ApiModelProperty("物料凭证年度")
    private int materialVoucherYear;
    @ApiModelProperty("物料凭证编号")
    private String materialCertificateCode;
    @ApiModelProperty("物料凭证行项目")
    private int materialCertificateItem;
    @ApiModelProperty("税代码")
    private String taxCode;
    @ApiModelProperty("税率")
    private BigDecimal taxRate;
    @ApiModelProperty("凭证日期")
    private Long certificateDate;
    @ApiModelProperty("过帐日期")
    private Long postingDate;
    @ApiModelProperty("SAP采购订单行项目")
    private int sapPurchaseOrderItem;
    @ApiModelProperty("采购组织编码")
    private String purchasingOrgCode;
    @ApiModelProperty("采购组织名称")
    private String purchasingOrgName;
    @ApiModelProperty("工厂")
    private String plantCode;
    @ApiModelProperty("采购组编码")
    private String purchasingGroupCode;
    @ApiModelProperty("采购组名称")
    private String purchasingGroupName;
    @ApiModelProperty("库存地编码")
    private String storeLocalCode;
    @ApiModelProperty("原物料凭证年度")
    private int omaterialCertificateYear;
    @ApiModelProperty("原物料凭证编号")
    private String omaterialCertificateCode;
    @ApiModelProperty("原物料凭证行号")
    private int omaterialCertificateItem;
    @ApiModelProperty("送货单细单ID")
    private Long shoppingNoticeDetailId;
    @ApiModelProperty("送货明细行号")
    private int shoppingNoticeRowId;
    @ApiModelProperty("供应商代码")
    private String vendorErpCode;
    @ApiModelProperty("金额（未含税）")
    private BigDecimal amountnoTax;
    @ApiModelProperty("货币码")
    private String currencyCode;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @ApiModelProperty("含税总金额")
    private BigDecimal totalAmountAndTax;
    @ApiModelProperty("总税额")
    private BigDecimal totalTax;
    @ApiModelProperty("PO定价单位数量")
    private BigDecimal fixPriceQty;
    @ApiModelProperty("PO定价单位")
    private String fixPriceUnitCode;
    @ApiModelProperty("库存单位数量")
    private BigDecimal stockQty;
    @ApiModelProperty("库存单位")
    private String stockUnit;
//    @ApiModelProperty("创建日期")
//    private Long createTime;
//    @ApiModelProperty("修改日期")
//    private Long modifyTime;
    @ApiModelProperty("可冲销数量")
    private BigDecimal canChargeOffNum;
    @ApiModelProperty("来源")
    private String origin;

    @ApiModelProperty("")
    private Long deliverId;
    @ApiModelProperty("")
    private String deliverNo;

}
